import request from '@/util/request';

//获取公司行业
export const getCompanyIndustry = async () => {
    try {
        const response = await request.get('/common/getAllCompanyIndustries');
        return response.data;
    } catch (error) {
        console.error(' 201 获取所有公司行业失败:', error);
        throw error;
    }
}

export const  smartRecommendCompanyList = async () => {
    try {
        const response = await request.get('/seeker/company/smartRecommendCompanyList');
        return response.data;
    } catch (error) {
        console.error(' 201 获取热门企业失败:', error);
        throw error;
    }

};

export const  getCompanyList = async (data) => {
    try {
        const response = await request.post('/seeker/company/getCompanies',data);
        return response.data;
    } catch (error) {
        console.error(' 201 获取热门企业失败:', error);
        throw error;
    }

};

//获取热门城市
export const getHotCity = async () => {
    try {
        const response = await request.get('/seeker/company/getHotCityList');
        return response.data;
    } catch (error) {
        console.error(' 201 获取热门城市失败:', error);
        throw error;
    }
}


